/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package local.ctl;

import java.sql.SQLException;
import java.util.ArrayList;
import persistance.DaoCpu;
import persistance.DaoProcessus;
import shared.ProcessList;

/**
 *
 * @author xarckane
 */
public class ctlProcessus {
      

  
    public static shared.ProcessList getProcessus(int id) throws SQLException {
        return DaoProcessus.getInstance().getProcessusByRequestId(id);
        
    }
    public static void save(String serv,ProcessList process) throws SQLException {
         DaoProcessus.getInstance().saveProcess(serv, process);
        
    }
    
}
